package com.nai365.nart.ware.feign;

import com.nai365.nart.common.core.constant.SecurityConstants;
import com.nai365.nart.common.core.constant.ServiceNameConstants;
import com.nai365.nart.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(ServiceNameConstants.ORDER_SERVICE)
public interface OrderFeignService {

    /**
     * 获取订单状态
     */
    @GetMapping("/order/status/{orderSn}")
	R getOrderByOrderSn(@PathVariable("orderSn") String orderSn, @RequestHeader(SecurityConstants.FROM) String from);
}
